import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;


public class CovidGroupingReducer extends Reducer<CovidGroupingBean, Text,Text, NullWritable> {
    @Override
    protected void reduce(CovidGroupingBean key, Iterable<Text> values, Reducer<CovidGroupingBean, Text, Text, NullWritable>.Context context) throws IOException, InterruptedException {
        for (Text value : values) {
            context.write(value,NullWritable.get());
        }
    }
}
